package com.pisolution.actuator.client.gc;

import java.util.ArrayList;
import java.util.List;

/**
 * 垃圾回收器日志数据实体.
 *
 * @author sora
 * @version 0.1.0
 */
@SuppressWarnings("unused")
public class GCLog {
    /** 用于存储垃圾回收器日志. */
    private final List<String> logs;

    /** 状态码 用于表示日志获取情况. */
    private final int status;

    // -------------------------------------------------------------------------------------------------
    //  初始化
    // -------------------------------------------------------------------------------------------------

    public GCLog(final List<String> logs, int status) {
        this.logs = logs;
        this.status = status;
    }

    // -------------------------------------------------------------------------------------------------
    //  属性访问
    // -------------------------------------------------------------------------------------------------

    public List<String> getLogs() {
        return new ArrayList<>(this.logs);
    }

    public int getStatus() {
        return this.status;
    }
}
